﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.snowflake
{
	// Token: 0x020000EE RID: 238
	public class TCreateFileFormatStmt : TCustomSqlStatement
	{
		// Token: 0x1700016D RID: 365
		// (get) Token: 0x06000810 RID: 2064 RVA: 0x0030181B File Offset: 0x002FFA1B
		public TDummy FormatOptions
		{
			get
			{
				return this._formatOptions;
			}
		}

		// Token: 0x06000811 RID: 2065 RVA: 0x00301823 File Offset: 0x002FFA23
		public void setFileFormatName(TObjectName fileFormatName)
		{
			this.fileFormatName = fileFormatName;
		}

		// Token: 0x1700016E RID: 366
		// (get) Token: 0x06000812 RID: 2066 RVA: 0x0030182C File Offset: 0x002FFA2C
		public TObjectName FileFormatName
		{
			get
			{
				return this.fileFormatName;
			}
		}

		// Token: 0x06000813 RID: 2067 RVA: 0x00301834 File Offset: 0x002FFA34
		public TCreateFileFormatStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstCreateFileFormat;
		}

		// Token: 0x06000814 RID: 2068 RVA: 0x00301848 File Offset: 0x002FFA48
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.fileFormatName = (TObjectName)tdummy.node1;
			this._formatOptions = (TDummy)tdummy.node2;
			return 0;
		}

		// Token: 0x06000815 RID: 2069 RVA: 0x00301896 File Offset: 0x002FFA96
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000816 RID: 2070 RVA: 0x003018A6 File Offset: 0x002FFAA6
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040011FE RID: 4606
		private TDummy _formatOptions;

		// Token: 0x040011FF RID: 4607
		private TObjectName fileFormatName;
	}
}
